import request from '@/utils/request'

// 查询医院服务信息列表
export function listHospitalInfo(query) {
  return request({
    url: '/hospital/hospitalInfo/list',
    method: 'get',
    params: query
  })
}

// 查询医院服务信息详细
export function getHospitalInfo(id) {
  return request({
    url: '/hospital/hospitalInfo/' + id,
    method: 'get'
  })
}

// 新增医院服务信息
export function addHospitalInfo(data) {
  return request({
    url: '/hospital/hospitalInfo',
    method: 'post',
    data: data
  })
}

// 修改医院服务信息
export function updateHospitalInfo(data) {
  return request({
    url: '/hospital/hospitalInfo',
    method: 'put',
    data: data
  })
}

// 删除医院服务信息
export function delHospitalInfo(id) {
  return request({
    url: '/hospital/hospitalInfo/' + id,
    method: 'delete'
  })
}
//查询医院字典信息
export function getHospitalDict(){
  return request({
    url: '/hospital/hospitalInfo/dict',
    method:'get'
  })
}

// 注册医院
export function register(data) {
  return request({
    url: '/hospital/hospitalInfo/register',
    method: 'post',
    data: data
  })
}
